package com.example.yibu.modelConfig.pool;

import jakarta.annotation.PreDestroy;
import org.springframework.stereotype.Component;

@Component
public class ShutdownThread {

    @PreDestroy
    public void shutdownThreadTask(){
        LimitedThreadPool.shutdownExecutor(LimitedThreadPool.createPool());
    }
}
